package com.chinairi.mall.dao;

import com.chinairi.mall.model.OrderCommodityTrackInformationYes;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 服务节点记录表（不报警的正常表） Mapper 接口
 * </p>
 *
 * @author Webgasd
 * @since 2020-08-26
 */
public interface OrderCommodityTrackInformationYesMapper extends BaseMapper<OrderCommodityTrackInformationYes> {
    /**
     * 根据节点id获取
     * @param trackNumber
     * @return
     */
    OrderCommodityTrackInformationYes selectTrackInformationByNumber(@Param("trackNumber") String trackNumber);

    /**
     * 批量插入追踪信息，用于报警
     * @param orderCommodityTrackInformationYesList
     */
    void batchInsert(@Param("orderCommodityTrackInformationYesList") List<OrderCommodityTrackInformationYes> orderCommodityTrackInformationYesList);
}
